package com.gxa.jjty.core.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author asus
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@Table(name = "system_message")
public class SystemMsg implements Serializable {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @ApiModelProperty(value = "ID",hidden = true)
  private Integer id;

  @ApiModelProperty(value = "标题")
  private String title;

  @ApiModelProperty(value = "类型")
  private String type;

  @ApiModelProperty(value = "发布时间",hidden = true)
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date releaseTime;

  @ApiModelProperty(value = "发布人")
  private String publisher;

  @ApiModelProperty(value = "消息是否读状态")
  private Integer messageStatus;

  @ApiModelProperty(value = "发布内容")
  private  String content;
  @ApiModelProperty(value = "残疾人id")
  private Long handicappedId;



}
